package com.wlhse.dao;

import com.wlhse.entity.TaskAndProcessPojo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TaskAndProcessDao {
    List<TaskAndProcessPojo> getAll();

    List<TaskAndProcessPojo> queryTask();

    List<TaskAndProcessPojo> queryProcessByTask(String taskCode);

    int deleteTaskAndProcess(@Param("nodeCode") String nodeCode);

    int insertSingle(TaskAndProcessPojo taskAndProcessPojo);

//    int queryChildNode(@Param("nodeCode") String nodeCode);

    int updateTaskAndProcess(TaskAndProcessPojo taskAndProcessPojo);

//    int insertTaskAndProcess(TaskAndProcessPojo taskAndProcessPojo);

    String getMaxString(@Param("parent") String parent,@Param("length") int length,@Param("length2") int length2);

    int getTaskAndProcessCount(@Param("nodeCode") String nodeCode);
}
